package com.itheima.info.manger.system.controller;

import com.itheima.info.manger.system.domain.Student;
import com.itheima.info.manger.system.service.StudentService;

import java.util.Scanner;

public class OtherStudentController extends BaseStudentController {
    private Scanner sc = new Scanner(System.in);
    @Override
    public Student getStudentInfo(String sid) {

        System.out.println("输入姓名");
        String name = sc.next();
        System.out.println("输入年龄");
        int age = sc.nextInt();
        System.out.println("输入生日");
        String birthday = sc.next();
        Student student = new Student(sid,name,age,birthday);

        return student;
    }



}
